diff --git a/Example_test.go b/Example_test.go index deb0550..1bc54d3 100644 --- a/Example_test.go +++ b/Example_test.go @@ -15,7 +15,7 @@ func ExampleHubConnectionOptions_Connect() { event := <-hub.OnEvent switch event.EventType { case EVENT_CONNECTION_STATE_CHANGED: - fmt.Printf("Connection -- %s (%s)\n", event.StateChange.Format(), event.Message) + fmt.Printf("Connection -- %s (%s)\n", event.StateChange, event.Message) case EVENT_PUBLIC: fmt.Printf("Message from '%s': '%s'\n", event.Nick, event.Message) @@ -34,7 +34,7 @@ func ExampleHubConnectionOptions_ConnectSync() { cb := func(hub *HubConnection, event HubEvent) { switch event.EventType { case EVENT_CONNECTION_STATE_CHANGED: - fmt.Printf("Connection -- %s (%s)\n", event.StateChange.Format(), event.Message) + fmt.Printf("Connection -- %s (%s)\n", event.StateChange, event.Message) case EVENT_PUBLIC: fmt.Printf("Message from '%s': '%s'\n", event.Nick, event.Message)