5 #ifndef PPAPI_CPP_WEBSOCKET_H_
6 #define PPAPI_CPP_WEBSOCKET_H_
10 #include "ppapi/c/ppb_websocket.h"
24 class CompletionCallback;
105 int32_t
Close(uint16_t code,
const Var& reason,
220 #endif // PPAPI_CPP_WEBSOCKET_H_
Definition: websocket.h:30
uint64_t GetBufferedAmount()
PP_WebSocketReadyState GetReadyState()
Definition: completion_callback.h:26
Definition: instance_handle.h:44
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)
A generic type used for passing data types between the module and the page.
Definition: var.h:23
int32_t SendMessage(const Var &message)
A reference counted module resource.
Definition: resource.h:20
virtual ~WebSocket()
Destructs a WebSocket object.