Port change

This commit is contained in:
Stéphane Lepin 2016-10-16 23:36:55 +02:00
parent 87b64d4511
commit c23eaed283
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,6 @@
#include <obs-module.h>
#include <obs-frontend-api.h>
#include "obs-websocket.h"
#include "WSEvents.h"
#include "WSServer.h"
@ -11,9 +12,9 @@ WSServer *server;
bool obs_module_load(void)
{
blog(LOG_INFO, "[obs-websockets] you can haz websockets");
blog(LOG_INFO, "[obs-websockets] you can haz websockets (version %f)", OBS_WEBSOCKET_VERSION);
server = new WSServer(8080);
server = new WSServer(4444);
eventHandler = new WSEvents(server);
return true;

6
obs-websocket.h Normal file
View File

@ -0,0 +1,6 @@
#ifndef OBSWEBSOCKET_H
#define OBSWEBSOCKET_H
#define OBS_WEBSOCKET_VERSION 0.2
#endif // OBSWEBSOCKET_H