Files
kubesphere/vendor/gopkg.in/igm/sockjs-go.v2/sockjs/sockjs.go
hongming 93ad572e19 refine tenant api
Signed-off-by: hongming <talonwan@yunify.com>
2019-04-08 20:48:31 +08:00

14 lines
377 B
Go

package sockjs
// Session represents a connection between server and client.
type Session interface {
// Id returns a session id
ID() string
// Recv reads one text frame from session
Recv() (string, error)
// Send sends one text frame to session
Send(string) error
// Close closes the session with provided code and reason.
Close(status uint32, reason string) error
}