[ create a new paste ] login | about

Link: http://codepad.org/cdZRrDU0    [ raw code | fork ]

C, pasted on Sep 10:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function handler()
{
	var s = new WebSocket("ws://127.0.0.1:3374/");

	s.onopen = function()
	{
		alert("connection opened");
		s.send("nick hi\npass rofl\n");
	};

	s.onmessage = function(ev)
	{
		console.log(ev.data);
	};
}


Create a new paste based on this one


Comments: