Categorygithub.com/KennyChenFight/webSocketDemo
modulepackage
0.0.0-20200122152030-c2cf12dfce51
Repository: https://github.com/kennychenfight/websocketdemo.git
Documentation: pkg.go.dev

# README

one to one chatting room

  1. for one client call http://localhost:8080/ws?senderId=Kenny&receiverId=Nicole
  2. for another client call http://localhost:8080/ws?senderId=Nicole&receiverId=Kenny
  3. then can talk each other

for test, you can use chrome extension: smart-websocket-client

# Structs

Client is a middleman between the websocket connection and the hub.
No description provided by the author
No description provided by the author