Descriptionwebsocket: add mutex to make websocket full-duplex
One benefit of websocket is that it is full-duplex so that it could
send and receive at the same time.
This CL makes websocket goroutine safe, so user could use websocket
both on goroutine for read and on goroutine for write.
Patch Set 1 #Patch Set 2 : diff -r 49696534f8b7 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 49696534f8b7 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 49696534f8b7 https://go.googlecode.com/hg/ #
MessagesTotal messages: 5
|