Class: Isomorfeus::AssetManager::ServerSocketProcessor
- Inherits:
-
Object
- Object
- Isomorfeus::AssetManager::ServerSocketProcessor
- Defined in:
- lib/isomorfeus/asset_manager/server_socket_processor.rb
Instance Method Summary collapse
- #on_close(client) ⇒ Object
- #on_message(client, data) ⇒ Object
- #on_open(client) ⇒ Object
- #on_shutdown(client) ⇒ Object
Instance Method Details
#on_close(client) ⇒ Object
8 9 10 |
# File 'lib/isomorfeus/asset_manager/server_socket_processor.rb', line 8 def on_close(client) # client.unsubscribe Isomorfeus.asset_manager_hmr_channel end |
#on_message(client, data) ⇒ Object
4 5 6 |
# File 'lib/isomorfeus/asset_manager/server_socket_processor.rb', line 4 def (client, data) # nothing for now end |
#on_open(client) ⇒ Object
12 13 14 |
# File 'lib/isomorfeus/asset_manager/server_socket_processor.rb', line 12 def on_open(client) client.subscribe Isomorfeus.asset_manager_hmr_channel end |
#on_shutdown(client) ⇒ Object
16 17 18 |
# File 'lib/isomorfeus/asset_manager/server_socket_processor.rb', line 16 def on_shutdown(client) # nothing for now end |