How to check connection status of websocket?

In web application development, you’d face a moment that need to check websocket connection status.For example, you’d have a situation that your web backend needs to check if users are active in the browser. It’s as very simple as you just need to check websocket property WebSocket.readyState. It has 4 possible values; “CONNECTING”, “OPEN”, “CLOSING”, “CLOSE”. …

Ngrok for webhook testing.

When you develop your web applications, you will have situation to test 3rd party API integration in the local development environment. The tricky problem here is most of 3rd party APIs are callback based. In a word, most of 3rd party APIs send data/status as callbacks/webhook to original client. However when you wants to test …

Javascript VM mode in Remix

When you develop smart contracts in Remix, it’s fucking that every test transactions are dragging so much time. So even for simple smart contract, we have to take much time for just transaction validation and testing. Remix provides Javascript VM mode for the blockchain emulation.Javascript VM mode is just memory based “blockchain”. It has same …