Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
gosocketio
✓ github.com/graarh/golang-socketio
Connects to a Socket.IO server and listens for messages.
package main
import (
"github.com/graarh/golang-socketio"
"github.com/graarh/golang-socketio/transport"
)
func main() {
c, err := gosocketio.Dial(
gosocketio.GetUrl("localhost", 8080, false),
transport.GetDefaultWebsocketTransport(),
)
if err != nil {
panic(err)
}
c.On("message", func(h *gosocketio.Channel, args interface{}) {
println("received:", args)
})
c.Close()
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20170510162725-2c44953b9b5flatest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.