MetinSeylan / Vue-Socket.io

😻 Socket.io implementation for Vuejs and Vuex
https://metin.sh
MIT License
3.95k stars 496 forks source link

wss issue connection #255

Closed Mahshid-Gh closed 4 years ago

Mahshid-Gh commented 4 years ago

Describe the bug I am trying to connect with wss but wss keep replacing with https

My socket config is import Vue from 'vue'; import VueSocketIO from 'vue-socket.io'; import * as io from 'socket.io-client'; import store from '../store';

export default async (/ { app, router, Vue ... } /) => { Vue.use(new VueSocketIO({ debug: true, connection: io('wss://echo.websocket.org'), vuex: { store, actionPrefix: 'SOCKET', mutationPrefix: 'SOCKET', }, })); };

I get below error :

image