Roxen.git / server / etc / modules / WebSocket.pike

version» Context lines:

Roxen.git/server/etc/modules/WebSocket.pike:208:   {    WS_DEBUG("Connection closed.\n");    ws_close_reason = reason;    ws_msg_queue->write(WS_CLOSE_MSG);    ws_schedule_handling();    this_program::id->json_logger->log(([    "event" : "WEBSOCKET_CLOSED_QUEUED",    ]));   }    + //! Overloaded to call @[ws_reschedule_keepalive()]. + void send(Protocols.WebSocket.Frame frame) + { +  ws_reschedule_keepalive(); +  ::send(frame); + } +    //! Callback which is called after we've setup the WebSocket   //! connection to tell the application that the connection is ready   //! for use.   //! @note   //! This isn't registered as a callback in the WebSocket Connection   //! object as that doesn't really work. Instead, it is simply called   //! after the WebSocket connection object has been set up. This means   //! that this method will be called in the same handler thread as the   //! one that returned the upgrade_connection mapping.   protected void ws_onopen(this_program id)