client and server establishing connections

This commit is contained in:
David Zhao
2020-11-06 23:57:03 -08:00
parent 218b9a0277
commit cba27d164b
8 changed files with 368 additions and 170 deletions
+2
View File
@@ -65,8 +65,10 @@ func (c *WSSignalConnection) WriteResponse(msg *livekit.SignalResponse) error {
var err error
if c.useJSON {
msgType = websocket.TextMessage
payload, err = protojson.Marshal(msg)
} else {
msgType = websocket.BinaryMessage
payload, err = proto.Marshal(msg)
}
if err != nil {