sockjs-go
sockjs-go copied to clipboard
WebSocket emulation - Go server library
//here is my options opts := sockjs.DefaultOptions opts.ResponseLimit = 4096 opts.RawWebsocket = true opts.CheckOrigin = func(r *http.Request) bool { fmt.Printf("check origin request %v\n", r.URL) return true } opts.Origin = "*"...
Hi! I want to add custom header to websocket upgrade, but due to https://github.com/igm/sockjs-go/blob/master/v3/sockjs/websocket.go#L17 it can't be solved. So pass upgrader over interface is the simplest way to do it,...
This exposes the HTTP request context via the Session interface, which I would like to use in my code as I populate fields in the originating HTTP request context that...
I'm referring to a server implementation to work with this client lib: https://github.com/sockjs/websocket-multiplex.
I need this functionality in order to avoid duplicating the logic of handling heartbeats in my own code. I could do it, but there would be a waste of timers...
I have an existing Go application which uses `gorilla/websocket`. I also have a test suite written in Go which uses `gorilla/websocket`'s `websocket.Dialer` to connect to an instance of the application...
Creating a sockjs handler with a prefix that involves a regular expression group breaks `parseSessionID` because it uses constant match offsets. It feels like there are two options: 1. Trim...