1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 18:37:05 +00:00

one for today, one for tomorrow and ready :)

Former-commit-id: 2e0a335c84c1d9c57a61b7f3203e54f7cccd7dcc
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-12-30 20:40:52 +02:00
parent 75d710ce90
commit 64da28af8b
18 changed files with 320 additions and 2138 deletions

View File

@@ -85,7 +85,7 @@ func SendMessage(serverID, to, method, message string) error {
// SendtBytes broadcast a message to server
func SendtBytes(serverID, to, method string, message []byte) error {
// look https://github.com/kataras/iris/tree/master/adaptors/websocket/message.go , client.go and client.js
// look https://github.com/kataras/iris/blob/master/websocket/message.go , client.go and client.js
// to understand the buffer line:
buffer := []byte(fmt.Sprintf("iris-websocket-message:%v;0;%v;%v;", method, serverID, to))
buffer = append(buffer, message...)