feat: 초기 프로젝트 설정 및 룰.md 파일 추가
This commit is contained in:
10
api.hyungi.net/node_modules/nssocket/examples/foo.js
generated
vendored
Normal file
10
api.hyungi.net/node_modules/nssocket/examples/foo.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
var nssocket = require('../lib/nssocket');
|
||||
var outbound = new nssocket.NsSocket();
|
||||
|
||||
outbound.data('Broadcasting', function (data) {
|
||||
console.log(data)
|
||||
});
|
||||
|
||||
outbound.connect(4949);
|
||||
|
||||
outbound.send('Connecting', { "random": Math.random() });
|
||||
Reference in New Issue
Block a user