Class: Thick::WebSocket

Inherits:
WebSocketHandler
  • Object
show all
Defined in:
lib/thick/websocket.rb

Instance Method Summary collapse

Instance Method Details

#on_closeObject

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/thick/websocket.rb', line 15

def on_close
  raise NotImplementedError.new("You should implement '#on_close' method.")
end

#on_data(data) ⇒ Object

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/thick/websocket.rb', line 11

def on_data(data)
  raise NotImplementedError.new("You should implement '#on_data(data)' method.")
end

#on_openObject

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/thick/websocket.rb', line 7

def on_open
  raise NotImplementedError.new("You should implement '#on_open' method.")
end