Skip to content

Commit

Permalink
fix chat example
Browse files Browse the repository at this point in the history
  • Loading branch information
vektah committed Feb 4, 2020
1 parent 565619a commit 6bf8841
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions example/chat/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func main() {

srv := handler.New(chat.NewExecutableSchema(chat.New()))

srv.AddTransport(transport.POST{})
srv.AddTransport(transport.Websocket{
KeepAlivePingInterval: 10 * time.Second,
Upgrader: websocket.Upgrader{
Expand Down

0 comments on commit 6bf8841

Please sign in to comment.