From 1b3279046ec6979a7c2cfc7e2ccdf323ba7a2d19 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 11 Apr 2020 13:16:06 +0200 Subject: [PATCH] Fix the way WsMessage are encoded --- ws.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ws.go b/ws.go index 2f1643b..8707e04 100644 --- a/ws.go +++ b/ws.go @@ -15,10 +15,10 @@ import ( // WsMessage is a message from or to the api server type WsMessage struct { - Title string - CallHash string - PeerID string - Data interface{} + Title string `json:"title"` + CallHash string `json:"callHash"` + PeerID string `json:"peerId"` + Data interface{} `json:"data"` } var outMsgChan = make(chan interface{})