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
import std/[os, threadpool, strformat, asyncdispatch, asyncnet] | |
import protocol_protobuf, streams | |
proc connect(socket: AsyncSocket, serverAddr: string) {.async.} = | |
echo &"Connecting to {serverAddr}" | |
await socket.connect(serverAddr, Port(7687)) | |
echo "Connected!" | |
echo "Chat application started" |
OlderNewer