mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-30 06:28:31 +00:00
Reformat and add global message subscriptions
This commit is contained in:
parent
df7d607556
commit
8918b9ac3a
11 changed files with 182 additions and 158 deletions
|
@ -1,8 +1,8 @@
|
|||
package server
|
||||
|
||||
import (
|
||||
"golang.org/x/net/websocket"
|
||||
"fmt"
|
||||
"golang.org/x/net/websocket"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -24,7 +24,7 @@ func ExampleUnmarshalClientMessage() {
|
|||
func ExampleMarshalClientMessage() {
|
||||
var cm ClientMessage = ClientMessage{
|
||||
MessageID: -1,
|
||||
Command: "do_authorize",
|
||||
Command: "do_authorize",
|
||||
Arguments: "1234567890",
|
||||
}
|
||||
data, payloadType, err := MarshalClientMessage(&cm)
|
||||
|
@ -54,4 +54,4 @@ func TestArgumentsAsStringAndBool(t *testing.T) {
|
|||
if boolean != false {
|
||||
t.Error("Expected second array item to be false, got", boolean)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue