Why Meta Quest?
Design
Develop
API reference
Distribute and grow
Blog
Support
API reference
API reference
Select your platform
No SDKs available
No versions available
Overview
AudioClipAudioSource
ImageViewer
Lib
Meta
Conduit
Net
Voice
Voice
AboutWindow
Audio
Hub
INLPRequestOptions
INLPRequestResponseDecoder
INLPRequestResults
ITranscriptionRequestOptions
ITranscriptionRequestResults
IVoiceRequestOptions
IVoiceRequestResults
Logging
NLPRequest
NLPRequestEvents
NLPRequestResponseEvent
NLPRequestResponseValidatorEvent
NLayer
Net
Encoding
PubSub
WebSockets
WebSockets
IWebSocket
IWebSocketProvider
IWitWebSocketClient
IWitWebSocketClientProvider
IWitWebSocketRequest
MockWebSocket
NativeWebSocketWrapper
Requests
WitWebSocketAdapter
WitWebSocketClient
WitWebSocketSettings
Samples
TelemetryUtilities
TranscriptionRequest
TranscriptionRequestEvent
TranscriptionRequestEvents
UnityOpus
UserTranscriptionRequestEvent
VSDKHub
VoiceRequest
VoiceRequestEvents
Windows
WitAi
Oculus
Code samples
Downloads
Release notes
Supported platforms
Meta
MockWebSocket Class
Extends
IWebSocket
Mock web socket handler
Properties
WitWebSocketConnectionState
State
[Get]
Events
Action
OnOpen
Action< byte[], int, int >
OnMessage
Action< string >
OnError
Action<
WebSocketCloseCode
>
OnClose
Action
HandleConnect
Action< byte[]>
HandleSend
Action
HandleClose
Member Functions
MockWebSocket
( bool autoOpen )
void
SimulateOpen
( )
void
SimulateResponse
( byte [] bytes,
int offset,
int length )
void
SimulateResponse
(
WitResponseNode
jsonData,
byte [] binaryData )
void
SimulateError
( string error )
async Task
Connect
( )
Method to begin web socket communication
async Task
Send
( byte [] data )
Method to send byte data to a web socket
Task
Close
( )
Method to close web socket communication with normal close code
Build with Meta
Social Technologies
Meta Horizon
AI
Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Meta Horizon Creator Program
Discover
Why Meta Quest?
What is mixed reality?
Platforms and tools
2D apps for Meta Horizon OS
Devices
Meta Avatars
Success stories
Use cases
Support and legal
Developer policies
Legal
Privacy
Forums
Support
Build with Meta
Social Technologies
Meta Horizon
AI
Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Meta Horizon Creator Program
Discover
Why Meta Quest?
What is mixed reality?
Platforms and tools
2D apps for Meta Horizon OS
Devices
Meta Avatars
Success stories
Use cases
Support and legal
Developer policies
Legal
Privacy
Forums
Support
Build with Meta
Social Technologies
Meta Horizon
AI
Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Meta Horizon Creator Program
Discover
Why Meta Quest?
What is mixed reality?
Platforms and tools
2D apps for Meta Horizon OS
Devices
Meta Avatars
Success stories
Use cases
Support and legal
Developer policies
Legal
Privacy
Forums
Support
English (US)
© 2026 Meta