I have a docker nginx symfony vue stack under exampledomain.com
I implemented RTCMulticonnection with
<script type="application/javascript" src="https://rtcmulticonnection.herokuapp.com/dist/RTCMultiConnection.min.js"></script>
<script type="application/javascript" src="https://rtcmulticonnection.herokuapp.com/socket.io/socket.io.js"></script>
and in my Vue File
this.rtcmConnection = new RTCMultiConnection();
this.rtcmConnection.socketURL = 'https://rtcmulticonnection.herokuapp.com:443/';
everything was working. Now i wanted to use my own signaling server. I started one with the following Dockerfile
FROM node
RUN git clone https://github.com/muaz-khan/RTCMultiConnection-Server \
&& cd RTCMultiConnection-Server \
&& npm install
CMD (cd RTCMultiConnection-Server && node server.js)
EXPOSE 9001
I modified config.json with the ssl configuration of my nginx server.
and in the server.js i make this changes:
var iooptions = {
allowUpgrades: true,
transports: ['polling', 'websocket' ],
cors: {
origin: ['https://www.exampledomain.com','https://exampledomain.com'],
credentials: true,
methods: 'GET'
}
};
ioServer(httpApp,iooptions).on('connection', function(socket) {
...
}
Now the server is up and running under
https://exampledomain.com:9001/
and used it in vue with:
this.rtcmConnection.socketURL = 'https://exampledomain.com:9001/';
the browser tries to connect with signaling server with get and post
https://exampledomain.com:9001/socket.io/?userid=ovdo1uhmxtj7l4p4fs&sessionid=1c7ec8af2eacf1cdc828a54abc72e85a&msgEvent=RTCMultiConnection-Message&socketCustomEvent=RTCMultiConnection-Custom-Message&autoCloseEntireSession=false&maxParticipantsAllowed=1000&extra={}&EIO=3&transport=polling&t=NOeBTVe
the get request seems to be okay
but the post request is a 400 bad request and returns a json bad handshake error.
How can I fix the error and connect?
I have a docker nginx symfony vue stack under exampledomain.com
I implemented RTCMulticonnection with
and in my Vue File
everything was working. Now i wanted to use my own signaling server. I started one with the following Dockerfile
I modified config.json with the ssl configuration of my nginx server.
and in the server.js i make this changes:
Now the server is up and running under
https://exampledomain.com:9001/
and used it in vue with:
this.rtcmConnection.socketURL = 'https://exampledomain.com:9001/';
the browser tries to connect with signaling server with get and post
the get request seems to be okay
but the post request is a 400 bad request and returns a json bad handshake error.
How can I fix the error and connect?