Skip to content

Commit

Permalink
Fix formatting in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
treeform committed Jun 18, 2020
1 parent 0379b23 commit 8100716
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/socketio.nim
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()

0 comments on commit 8100716

Please sign in to comment.