This file contains hidden or 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
#!/usr/bin/env tarantool | |
local cqueues = require "cqueues" | |
local fiber = require "fiber" | |
local socket = require "socket" | |
package.loaded["http.client"] = nil -- tarantool has a namespace clash | |
local websocket = require "http.websocket" | |
local cq = cqueues.new() | |
-- Hook up cqueues loop inside tarantool fiber |