How to remove socket.io EIO and other parameters from url #4101
              
                Unanswered
              
          
                  
                    
                      minikiller
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| Hi! This is unfortunately not possible, as they are part of how the library works. Could you please explain your use case? Note: in any case, please remember that the Socket.IO client is not a WebSocket client, it will not be able to reach a plain WebSocket server | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
When I configure socket-io with the following options: { url: 'ws://localhost:8888', options: {path: '/chatws', transports: ['websocket'], reconnectionAttempts: '3'}}
I get the following error WebSocket connection to 'ws://localhost:8888/chatws/?EIO=3&transport=websocket' failed: Error during WebSocket handshake: Unexpected response code: 501
If I use other frameworks that do not add any parameters then it works.
How does one remove the EIO and all query parameters from the URL?
Beta Was this translation helpful? Give feedback.
All reactions