RealityServer Web Services API Programmer's Manual

iwebsocket_handler.h File Reference

Description

Header for the IWebsocket_handler interface.

Code Example

iwebsocket_handler.h

‎/******************************************************************************
 * Copyright 2010-2021 MIGENIUS PTY LTD, Australia. All rights reserved.
 *****************************************************************************/


#ifndef MI_RS_WEB_SERVICES_IWEBSOCKET_HANDLER_H
#define MI_RS_WEB_SERVICES_IWEBSOCKET_HANDLER_H

#include <mi/base/interface_declare.h>

namespace mi {

namespace rswservices {

class IWebsocket_handler : public
    mi::base::Interface_declare<0x40D9A6B9,0x6946,0x40D2,0xB3,0xC7,0x6A,0xBD,0x3A,0x1C,0x94,0x99>
{
public:
    virtual void connect(
        const char* session_id) = 0;

    virtual void command(
        const char *session_id) = 0;

    virtual void close(
        const char* session_id) = 0;
};

} // namespace rswservices
} // namespace mi

#endif // MI_RS_WEB_SERVICES_IWEBSOCKET_HANDLER_H

Namespaces

namespace mi
namespace 
Namespace for the RealityServer Web Services API. More...

Classes

class 
Web Socket handler interface that when implemented and registered via an extension context will be called whenever events occur on any web socket connection. More...