ambelovsky / gosf

Go SocketIO API Framework
http://gosf.io
MIT License
98 stars 14 forks source link

OnConnect not call #12

Open imanborumand opened 3 years ago

imanborumand commented 3 years ago

hi i am add OnConnect to main but not call when user connect to socket please help me thanks gosf.Startup(map[string]interface{}{"port": 9999}) //log.Fatal(http.ListenAndServe(":8081", nil))

gosf.OnConnect(func(client *gosf.Client, request *gosf.Request) {
    log.Println("Client connected.")
})