-
Notifications
You must be signed in to change notification settings - Fork 2
Home
- Client
- ErrorException
- JsonClient
- Messages
- PublishHandler
- Response
- TimeoutException
- Wamp
- WwiseUtility
WaapiClient
The Waapi Client provide a core interface to Waapi using strings only. You will need to provide your own JSON serialization.
Call a WAAPI remote procedure. Refer to WAAPI reference documentation for a list of URIs and their arguments and options.
A JSON string with the result of the Remote Procedure Call.
Name | Type | Description |
---|---|---|
uri | System.String | The URI of the remote procedure. |
args | System.String | The arguments of the remote procedure. |
options | System.String | The options the remote procedure. |
timeout | System.Int32 | The maximum timeout in milliseconds for the function to execute. Will raise Waapi.TimeoutException when timeout is reached. |
Close the connection.
Name | Type | Description |
---|---|---|
timeout | System.Int32 | The maximum timeout in milliseconds for the function to execute. Will raise Waapi.TimeoutException when timeout is reached. |
Connect to a running instance of Wwise Authoring.
Name | Type | Description |
---|---|---|
uri | System.String | URI to connect. Usually the WebSocket protocol (ws:) followed by the hostname and port, followed by waapi. |
timeout | System.Int32 | The maximum timeout in milliseconds for the function to execute. Will raise Waapi.TimeoutException when timeout is reached. |
Connect("ws://localhost:8080/waapi")
Return true if the client is connected and ready for operations.
This method has no parameters.
Subscribe to WAAPI topic. Refer to WAAPI reference documentation for a list of topics and their options.
Subscription id, that you can use to unsubscribe.
Name | Type | Description |
---|---|---|
topic | System.String | The topic to which subscribe. |
options | System.String | The options the subscription. |
publishHandler////// | WaapiClient.Wamp.PublishHandler | The delegate function to call when the topic is published. |
timeout | System.Int32 | The maximum timeout in milliseconds for the function to execute. Will raise Waapi.TimeoutException when timeout is reached. |
Unsubscribe from a subscription.
Name | Type | Description |
---|---|---|
subscriptionId | System.Int32 | The subscription id received from the initial subscription. |
WaapiClient.Wamp
Exception thrown during WAMP operations.
WaapiClient
The JsonClient provides an abstraction layer over the base Waapi Client and wraps everything under Newtonsoft.Json.Linq.JObject for convenience.
Call a WAAPI remote procedure. Refer to WAAPI reference documentation for a list of URIs and their arguments and options.
A Newtonsoft.Json.Linq.JObject with the result of the Remote Procedure Call.
Name | Type | Description |
---|---|---|
uri | System.String | The URI of the remote procedure. |
args | System.Object | The arguments of the remote procedure. C# anonymous objects will be automatically serialized to Json. |
options | System.Object | The options the remote procedure. C# anonymous objects will be automatically serialized to Json. |
timeout | System.Int32 | The maximum timeout in milliseconds for the function to execute. Will raise Waapi.TimeoutException when timeout is reached. |
Call a WAAPI remote procedure. Refer to WAAPI reference documentation for a list of URIs and their arguments and options.
A Newtonsoft.Json.Linq.JObject with the result of the Remote Procedure Call.
Name | Type | Description |
---|---|---|
uri | System.String | The URI of the remote procedure. |
args | Newtonsoft.Json.Linq.JObject | The arguments of the remote procedure as a Newtonsoft.Json.Linq.JObject |
options | Newtonsoft.Json.Linq.JObject | The options the remote procedure as a Newtonsoft.Json.Linq.JObject. |
timeout | System.Int32 | The maximum timeout in milliseconds for the function to execute. Will raise Waapi.TimeoutException when timeout is reached. |
Close the connection.
Name | Type | Description |
---|---|---|
timeout | M:WaapiClient.JsonClient.Close | The maximum timeout in milliseconds for the function to execute. Will raise Waapi.TimeoutException when timeout is reached. |
Connect to a running instance of Wwise Authoring.
Name | Type | Description |
---|---|---|
uri | System.String | URI to connect. Usually the WebSocket protocol (ws:) followed by the hostname and port, followed by waapi. |
timeout | System.Int32 | The maximum timeout in milliseconds for the function to execute. Will raise Waapi.TimeoutException when timeout is reached. |
Connect("ws://localhost:8080/waapi")
Return true if the client is connected and ready for operations.
This method has no parameters.
Subscribe to a topic. Refer to WAAPI reference documentation to obtain the list of topics available.
Name | Type | Description |
---|---|---|
topic | System.String | Topic to subscribe |
options | System.Object | Option for the subscrition. |
publishHandler | WaapiClient.JsonClient.PublishHandler | Delegate that will be executed when the topic is pusblished. |
timeout | System.Int32 | The maximum timeout in milliseconds for the function to execute. Will raise Waapi.TimeoutException when timeout is reached. |
Subscribe to a topic. Refer to WAAPI reference documentation to obtain the list of topics available.
The subscription id assigned to the subscription. Store the id to call Unsubscribe.
Name | Type | Description |
---|---|---|
topic | System.String | Topic to subscribe |
options | Newtonsoft.Json.Linq.JObject | Option for the subscrition. |
publishHandler | WaapiClient.JsonClient.PublishHandler | Delegate that will be executed when the topic is pusblished. |
timeout | System.Int32 | The maximum timeout in milliseconds for the function to execute. Will raise Waapi.TimeoutException when timeout is reached. |
Unsubscribe from a subscription.
Name | Type | Description |
---|---|---|
subscriptionId | System.Int32 | The subscription id received from the initial subscription. |
timeout | System.Int32 | The maximum timeout in milliseconds for the function to execute. Will raise Waapi.TimeoutException when timeout is reached. |
WaapiClient.Wamp
Messages ids defined by the WAMP protocol
WaapiClient.Wamp
Publish events are delegates registered with Subscribe.
WaapiClient.Wamp
Encapsulate a response from the server.
WaapiClient.Wamp
Exception thrown during WAMP operations when the timeout is reached.
WaapiClient
WAMP protocol implementation using only strings and regular expressions. This implements only a subset of the WAMP feature set and is only compatible with Wwise.
Invoke an RPC function from the uri
Name | Type | Description |
---|---|---|
uri | System.String | URI of the function |
args | System.String | Arguments |
options | System.String | Options |
Close the connection.
Name | Type | Description |
---|---|---|
timeout | System.Int32 | The maximum timeout in milliseconds for the function to execute. Will raise Waapi.TimeoutException when timeout is reached. |
Connect to the specified host, handshake and prepare the listening task.
Name | Type | Description |
---|---|---|
host | System.String | The URI of the host, usually something like ws://host:port |
Tell the connection state of the WebSocket client.
Return true if the connection is open and ready.
This method has no parameters.
Parse a WAMP message from the server.
This method has no parameters.
Wait for the next response
The response from the server.
This method has no parameters.
Wait for the next response and do some validation on the response
Name | Type | Description |
---|---|---|
message | WaapiClient.Wamp.Messages | What message to expect |
requestId | System.Int32 | What request id to expect |
Subscribe to a WAMP topic.
Subscription id, that you can use to unsubscribe.
Name | Type | Description |
---|---|---|
topic | System.String | The topic to which subscribe. |
options | System.String | The options the subscription. |
publishEvent | WaapiClient.Wamp.PublishHandler | The delegate function to call when the topic is published. |
timeout | System.Int32 | The maximum timeout in milliseconds for the function to execute. Will raise Waapi.TimeoutException when timeout is reached. |
Unsubscribe from a subscription.
Name | Type | Description |
---|---|---|
subscriptionId | System.Int32 | The subscription id received from the initial subscription. |
WwiseTools.Utils
Standard Wwise Utility class for WAAPI operations.