Quick Tip: debug WebSocket realtime data using your browser

When building realtime solutions using web technologies we often use WebSocket communication. There are several ways to debug WebSocket data, but we found this very useful during our development proces.

Displaying realtime WebSocket data using Chrome/Firefox/Safari Web Console

If you would like to see/debug realtime data from WebSocket very quickly, just open Chrome/Firefox/Safari Error console and use the following JavaScript code:

var ws = new WebSocket('ws://YourWebSocket.host:port/context')
ws.onmessage = function(data) {console.log(data)}

You should instantly get your server messages sent through the WebSocket.

hire us

Let’s talk about Mobile Apps

We’d love to design, develop and release them for you.

Highest DevOps Standards

Our team wield the right skills to make things work.

Angular magic in the making

Most flexible development technology for stunnig results.

Web Apps cooked the right way

The ultimate combination of code, design and user experience.

Django REST Framework

TEONITE develops, supports and donates open source projects.