class Grip::Controllers::WebSocket

Included Modules

Defined in:

grip/controllers/websocket.cr

Instance Method Summary

Instance Method Detail

def call(context : Context) : Context #

[View source]
def closed? : Bool #

[View source]
def on_binary(context : Context, socket : Socket, binary : Bytes) : Void #

[View source]
def on_close(context : Context, socket : Socket, close_code : HTTP::WebSocket::CloseCode | Int | Nil, message : String) : Void #

[View source]
def on_message(context : Context, socket : Socket, message : String) : Void #

[View source]
def on_open(context : Context, socket : Socket) : Void #

[View source]
def on_ping(context : Context, socket : Socket, message : String) : Void #

[View source]
def on_pong(context : Context, socket : Socket, message : String) : Void #

[View source]
def run(context, socket) #

[View source]