class LavinMQ::WebSocketIO

Included Modules

Defined in:

lavinmq/http/handler/websocket.cr

Constructors

Instance Method Summary

Class methods inherited from class IO

copy(src, dst, limit : Int) : Int64
copy(src, dst) : Int64
copy

Constructor Detail

def self.new(ws : ::HTTP::WebSocket) #

[View source]

Instance Method Detail

def read_timeout=(timeout) #

[View source]
def unbuffered_close #
Description copied from module IO::Buffered

Closes the wrapped IO.


[View source]
def unbuffered_flush #
Description copied from module IO::Buffered

Flushes the wrapped IO.


[View source]
def unbuffered_read(slice : Bytes) #
Description copied from module IO::Buffered

Reads at most slice.size bytes from the wrapped IO into slice. Returns the number of bytes read.


[View source]
def unbuffered_rewind #
Description copied from module IO::Buffered

Rewinds the wrapped IO.


[View source]
def unbuffered_write(slice : Bytes) : Nil #
Description copied from module IO::Buffered

Writes at most slice.size bytes from slice into the wrapped IO. Returns the number of bytes written.


[View source]