Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create websocket server running inside Flutter app?

I want to create an app for some simple multiplayer game but I don't know how to create websocket server in Flutter. Any ideas?

like image 734
Maverick Fabroa Avatar asked Oct 19 '25 03:10

Maverick Fabroa


1 Answers

You could use the SocketServer class (TCP). I have used this for a similar problem.

For a more complete answer, take a look at: Using Flutter App to run SocketServer and communicate with other phone via Socket

like image 148
KBeckers Avatar answered Oct 22 '25 04:10

KBeckers