abstract class Grip::Controllers::WebSocket
- Grip::Controllers::WebSocket
- Grip::Controllers::Base
- Reference
- Object
Defined in:
grip/controllers/websocket.crInstance Method Summary
- #call(context : Context) : Context
- #closed? : Bool
- #on_binary(context : Context, socket : Socket, binary : Bytes) : Void
- #on_close(context : Context, socket : Socket, close_code : HTTP::WebSocket::CloseCode | Int | Nil, message : String) : Void
- #on_message(context : Context, socket : Socket, message : String) : Void
- #on_open(context : Context, socket : Socket) : Void
- #on_ping(context : Context, socket : Socket, message : String) : Void
- #on_pong(context : Context, socket : Socket, message : String) : Void
- #run(context)
- #ws : HTTP::WebSocket::Protocol | Nil
- #ws=(ws : HTTP::WebSocket::Protocol | Nil)
Instance methods inherited from class Grip::Controllers::Base
call(context : Context) : Context
call
Instance Method Detail
abstract
def on_close(context : Context, socket : Socket, close_code : HTTP::WebSocket::CloseCode | Int | Nil, message : String) : Void
#