Skip to content

Commit

Permalink
chat example needs to use ws acceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
felipejfc committed Dec 30, 2019
1 parent 046993f commit 10f5ffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/demo/chat/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func main() {

go http.ListenAndServe(":3251", nil)

t := acceptor.NewTCPAcceptor(":3250")
t := acceptor.NewWSAcceptor(":3250")
pitaya.AddAcceptor(t)

pitaya.Configure(true, "chat", pitaya.Cluster, map[string]string{}, conf)
Expand Down

0 comments on commit 10f5ffb

Please sign in to comment.