aboutsummaryrefslogtreecommitdiffstats
path: root/packages/connect/src/orders_channel_factory.ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-08-18 01:43:44 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-08-18 01:43:44 +0800
commit48ec78d3aaa5dcef8544d17f26ef8ea8b31661e5 (patch)
tree3dd5fbeb42e256c553c7f02f81080d2f9d0a8cd1 /packages/connect/src/orders_channel_factory.ts
parent64a85dfb9cc60212dcf1c70ca7be4874936dd332 (diff)
downloaddexon-0x-contracts-48ec78d3aaa5dcef8544d17f26ef8ea8b31661e5.tar.gz
dexon-0x-contracts-48ec78d3aaa5dcef8544d17f26ef8ea8b31661e5.tar.zst
dexon-0x-contracts-48ec78d3aaa5dcef8544d17f26ef8ea8b31661e5.zip
Add networkId request param option
Diffstat (limited to 'packages/connect/src/orders_channel_factory.ts')
-rw-r--r--packages/connect/src/orders_channel_factory.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/connect/src/orders_channel_factory.ts b/packages/connect/src/orders_channel_factory.ts
index 4e9b74b2c..fae5cab8c 100644
--- a/packages/connect/src/orders_channel_factory.ts
+++ b/packages/connect/src/orders_channel_factory.ts
@@ -10,14 +10,14 @@ export const ordersChannelFactory = {
* @param url The relayer API base WS url you would like to interact with
* @param handler An OrderbookChannelHandler instance that responds to various
* channel updates
- * @return An OrderbookChannel Promise
+ * @return An OrdersChannel Promise
*/
async createWebSocketOrdersChannelAsync(
url: string,
handler: OrdersChannelHandler,
): Promise<OrdersChannel> {
assert.isUri('url', url);
- assert.isOrderbookChannelHandler('handler', handler);
+ assert.isOrdersChannelHandler('handler', handler);
return new Promise<OrdersChannel>((resolve, reject) => {
const client = new WebSocket.w3cwebsocket(url);
client.onopen = () => {