Class: Isomorfeus::AssetManager::ServerSocketProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/isomorfeus/asset_manager/server_socket_processor.rb

Instance Method Summary collapse

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 on_message(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