udp-messenger
Advanced tools
Comparing version 0.0.1 to 0.1.0
{ | ||
"name": "udp-messenger", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "Send messages over udp in small chunks", | ||
@@ -17,5 +17,5 @@ "main": "src/index.js", | ||
"license": "ISC", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/vijayee/udp-messages.git" | ||
"repository" : | ||
{ "type" : "git" | ||
, "url" : "https://github.com/vijayee/udp-messages" | ||
}, | ||
@@ -22,0 +22,0 @@ "dependencies": { |
@@ -5,3 +5,5 @@ 'use strict' | ||
const fs = require('fs') | ||
const msgproto = fs.readFileSync('./src/message.proto') | ||
const path = require('path') | ||
const file = path.join(__dirname, 'message.proto') | ||
const msgproto = fs.readFileSync(file) | ||
const protobuf = require('protocol-buffers') | ||
@@ -8,0 +10,0 @@ const pb = protobuf(msgproto) |
'use strict' | ||
const fs = require('fs') | ||
const msgproto = fs.readFileSync('./src/message.proto') | ||
const path = require('path') | ||
const file = path.join(__dirname, 'message.proto') | ||
const msgproto = fs.readFileSync(file) | ||
const protobuf = require('protocol-buffers') | ||
@@ -5,0 +7,0 @@ const pb = protobuf(msgproto) |
13820
413