-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import asyncdispatch, ws | ||
|
||
proc socketIo() {.async.} = | ||
echo "Connecting..." | ||
# Empty token works to get a reply. | ||
var webSocket = await newWebSocket("wss://sockets.streamlabs.com/socket.io/?EIO=3&transport=websocket&token=") | ||
echo "Connected!" | ||
echo await webSocket.receiveStrPacket() | ||
echo "Got a packet back!" | ||
echo "Connecting..." | ||
# Empty token works to get a reply. | ||
var webSocket = await newWebSocket("wss://sockets.streamlabs.com/socket.io/?EIO=3&transport=websocket&token=") | ||
echo "Connected!" | ||
echo await webSocket.receiveStrPacket() | ||
echo "Got a packet back!" | ||
|
||
waitFor socketIo() | ||
waitFor socketIo() |