Based on Blaise Jarrett's code, I was able to make a communication between websocket server in laptop and websocket client in RPi and show sensor value from RPI on the website in real time.

Loading more stuff…

Hmm…it looks like things are taking a while to load. Try again?

Loading videos…