An example of a WebSocket Server created with Dart

Dart WebSocket Example (Server & Client)

An example of a WebSocket Server created with Dart language and a client that can connect to it.

Run Server

Open terminal in project directory

>> dart ./bin/server.dart

Example Output:

H:\AndroidStudioProjects\werbsocket_server>dart ./bin/server.dart  
Listening on localhost:4040

Connection Server

Open terminal in project directory

>> dart ./bin/client.dart

In Postman

GitHub

View Github