Skip to content
Snippets Groups Projects
Commit 1050390a authored by IsolatedSushi's avatar IsolatedSushi
Browse files

Update naming

parent 5b6493ae
No related branches found
No related tags found
1 merge request!10Web socket streaming
......@@ -23,7 +23,7 @@ var target = '127.0.0.1:50051';
var count = 0;
class Connection{
class ProjectionRequest{
constructor(ws,client,calls,lineAmount){
this.index = count;
count += 1;
......@@ -36,7 +36,7 @@ class Connection{
wsServer.on('connection', function connection(ws) {
console.log(`Client connected with websocket`);
var currConnection = new Connection(ws,null,null,0);
var currConnection = new ProjectionRequest(ws,null,null,0);
ws.on('message', function incoming(message) {
parseMessage(message, currConnection);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment