Module: WebSocket::Mask

Defined in:
ext/websocket-driver/websocket_mask.c

Class Method Summary collapse

Class Method Details

.maskObject



7
# File 'ext/websocket-driver/websocket_mask.c', line 7

VALUE method_websocket_mask(VALUE self, VALUE payload, VALUE mask);

.mask(payload, mask) ⇒ Object



28
29
30
31
# File 'lib/websocket/driver.rb', line 28

def Mask.mask(payload, mask)
  @instance ||= new
  @instance.mask(payload, mask)
end