5 #ifndef PPAPI_CPP_WEBSOCKET_H_
6 #define PPAPI_CPP_WEBSOCKET_H_
8 #include "ppapi/c/ppb_websocket.h"
22 class CompletionCallback;
218 #endif // PPAPI_CPP_WEBSOCKET_H_
uint64_t GetBufferedAmount()
PP_WebSocketReadyState GetReadyState()
WebSocket(const InstanceHandle &instance)
int32_t Close(uint16_t code, const Var &reason, const CompletionCallback &callback)
int32_t ReceiveMessage(Var *message, const CompletionCallback &callback)
int32_t Connect(const Var &url, const Var protocols[], uint32_t protocol_count, const CompletionCallback &callback)
virtual ~WebSocket()
Destructs a WebSocket object.
A generic type used for passing data types between the module and the page.
int32_t SendMessage(const Var &message)
A reference counted module resource.