23.03.2018, 02:30
Hi,
I am trying to use the copas part because being a resident script i need to run a udp server to accept an event script client.
On connecting with the copas parameter I get the following in the error log.
Library copas:0: attempt to yield across C-call boundary
stack traceback:
[C]: in function 'yield'
Library copas: in function 'connect'
User library websocket:500: in function 'sock_connect'
User library websocket:438: in function 'connect'
I am trying to use the copas part because being a resident script i need to run a udp server to accept an event script client.
On connecting with the copas parameter I get the following in the error log.
Library copas:0: attempt to yield across C-call boundary
stack traceback:
[C]: in function 'yield'
Library copas: in function 'connect'
User library websocket:500: in function 'sock_connect'
User library websocket:438: in function 'connect'
Code:
ws = require("user.websocket")
url = 'ws://demos.kaazing.com/echo'
-- mode is either sync or copas, second parameter sets timeout in seconds
client = ws.client('copas', 10)
client:connect(url)