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
// deprecated for manual_exception_handling repo | |
#pragma once | |
#include <Windows.h> | |
#include <cstdint> | |
#include <memory> | |
#include <iostream> | |
#include <vector> | |
#include <cassert> |
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
// Javascript example | |
$(function(){ | |
var webSocket = window.WebSocket || window.MozWebSocket, | |
ws = new webSocket('ws://localhost:8181'); | |
ws.onopen = function(e){ | |
console.log('Connection opened'); | |
} | |
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
module.exports = { | |
/** | |
* | |
* Using raw socket.io functionality from a Sails.js controller | |
* | |
*/ | |
index: function (req,res) { |