2#include <ossia/network/context.hpp> 
    3#include <ossia/network/sockets/udp_socket.hpp> 
    5#include <ossia-qt/protocols/utils.hpp> 
   11#include <nano_observer.hpp> 
   17class qml_websocket_inbound_socket
 
   19    , 
public Nano::Observer
 
   21  W_OBJECT(qml_websocket_inbound_socket)
 
   23  qml_websocket_inbound_socket(
 
   24      const ossia::net::inbound_socket_configuration& conf, boost::asio::io_context& ctx)
 
   30  inline boost::asio::io_context& context() noexcept { 
return m_context; }
 
   34    if(onOpen.isCallable())
 
   36      onOpen.call({qjsEngine(
this)->newQObject(
this)});
 
   41    run_on_qt_thread({ onClose.call(); });
 
   45  boost::asio::io_context& m_context;
 
   50  QJSValue onConnection;
 
   52  QJSValue onTextMessage;
 
   53  QJSValue onBinaryMessage;
 
Definition qml_device.cpp:43