# Socket.io with mitmproxy

**URL:** <https://discourse.mitmproxy.org/t/socket-io-with-mitmproxy/1570>\
**Category:** help\
**Created:** [June 11, 2019, 4:56am UTC](https://discourse.mitmproxy.org/t/socket-io-with-mitmproxy/1570 "2019-06-11T04:56:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kendang](https://avatars.discourse-cdn.com/v4/letter/k/9e8a1a/32.png) [@kendang](https://discourse.mitmproxy.org/u/kendang)\
**Post date:** [June 11, 2019, 4:56am UTC](https://discourse.mitmproxy.org/t/socket-io-with-mitmproxy/1570/1 "2019-06-11T04:56:49Z")

</div>

I use mitmproxy to capture [socket.io](http://socket.io) websocket, and try to display the content. But I always get the following error. Can anyone give me some hints what is the problem?

127.0.0.1:52292: GET game.club/g\_5\_2/?EIO=3&transport=websocket  
\<\< 101 Switching Protocols 0b  
127.0.0.1:52292 \<- WebSocket 1 message \<- game.club:443/g\_5\_2/?EIO=3&transport=websocket  
127.0.0.1:52292 \<- WebSocket 1 message \<- game.club:443/g\_5\_2/?EIO=3&transport=websocket  
WebSocket connection closed by client: 1007 (message missing), ‘utf-8’ codec can’t decode byte 0xdb in position 2: invalid continuation byte  
127.0.0.1:52292: clientdisconnect  
127.0.0.1:52294: clientconnect  
127.0.0.1:52294: GET game.club/g\_5\_2/?EIO=3&transport=websocket  
\<\< 101 Switching Protocols 0b  
127.0.0.1:52294 \<- WebSocket 1 message \<- game.club:443/g\_5\_2/?EIO=3&transport=websocket  
127.0.0.1:52294 \<- WebSocket 1 message \<- game.club:443/g\_5\_2/?EIO=3&transport=websocket  
WebSocket connection closed by client: 1005 (message missing),  
127.0.0.1:52294: clientdisconnect  
127.0.0.1:52296: clientconnect
