Versions in this module Expand all Collapse all v0 v0.2.0 May 24, 2015 Changes in this version + const LogLevelDebug + const LogLevelError + const LogLevelInfo + const LogLevelWarning + var LogLevelStrings = []string + func JSON(bindStruct interface{}, options ...*Options) martini.Handler + func Messages(options ...*Options) martini.Handler + type Binding interface + Close func(int) error + DisconnectChannel func() chan int + ErrorChannel func() chan error + type Connection struct + Disconnect chan int + Done chan bool + Error chan error + func (c *Connection) Close(closeCode int) error + func (c *Connection) DisconnectChannel() chan int + func (c *Connection) ErrorChannel() chan error + type JSONConnection struct + Receiver reflect.Value + Sender reflect.Value + func (c *JSONConnection) Close(closeCode int) error + type MessageConnection struct + Receiver chan string + Sender chan string + func (c *MessageConnection) Close(closeCode int) error + type Options struct + AllowedOrigin string + LogLevel int + Logger *log.Logger + MaxMessageSize int64 + PingPeriod time.Duration + PongWait time.Duration + RecvChannelBuffer int + SendChannelBuffer int + SkipLogging bool + WriteWait time.Duration