We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I see there is some things for socket.io, like socketio_routes and Coder.socketConnection. Is there any documentation for this stuff?
The text was updated successfully, but these errors were encountered:
Never mind. Figured out how to do it. For those wondering: Node:
exports.socketio_routes = [ { key: "msg", handler: "msg_handler" }, ]; exports.msg_handler = function(socket, data) { socket.emit("appdata", { appid: exports.settings.appname, key: "msg", data: data }); };
JS:
$(function() { Coder.socketConnection.init(); Coder.socketConnection.addListener("msg", function(data) { console.log(data); }); $("#btn").click(function() { Coder.socketConnection.sendData("msg", "hi!"); }); });
Sorry, something went wrong.
No branches or pull requests
I see there is some things for socket.io, like socketio_routes and Coder.socketConnection. Is there any documentation for this stuff?
The text was updated successfully, but these errors were encountered: