Socket assign is empty in handle_in

It does sound like the topic is not being set from the javascript side yeah. :slight_smile:

Just for a quick recap, in case it helps in any way:

  1. The webpage initiates a websocket/longpolling connection to the server at a url.
  2. The server starts up a Socket to handle the connection, anything you assign on the socket that you return here will be on the assign everywhere for this connection.
  3. The javascript then connects to a topic.
  4. The server then gets the packet of the topic request and creates a new Channel process where the socket from the Socket is passed in here, it can further add ‘more’ assigns to the returned socket here, of which will be available to all the functions within the Channel.
  5. Multiple channels can be joined and they can add/remove assigns to their copies of the main socket all they want with no interference.
1 Like