asyncmacro.nim(130, 3) Error: 'yield' only allowed in an iterator
Thanx guys, you solved my problem. I am new to all of this and have much to learn.
asyncmacro.nim(130, 3) Error: 'yield' only allowed in an iterator
Tried to make this example code: import asyncdispatch, ws var wsc = await newWebSocket("ws://ws.ifelse.io") echo await wsc.receiveStrPacket() await wsc.send("Hi, how are you?") echo await wsc.receiveStrPacket() wsc.close() Run got: