@symbo.ls/socket 2.6.0 → 2.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/client.js +3 -1
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -18,7 +18,9 @@ let socket
18
18
  const defautlOpts = {}
19
19
 
20
20
  export const connect = (key, options = {}) => {
21
- socket = io(options.socketUrl || SOCKET_BACKEND_URL)
21
+ socket = io(options.socketUrl || SOCKET_BACKEND_URL, {
22
+ withCredentials: true
23
+ })
22
24
 
23
25
  socket.on('connect', () => {
24
26
  console.log('Connected to', options.socketUrl || SOCKET_BACKEND_URL, key, socket.id)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/socket",
3
- "version": "2.6.0",
3
+ "version": "2.6.6",
4
4
  "description": "Connect your app to Symbols editor",
5
5
  "main": "server.js",
6
6
  "author": "symbo.ls",