javascript - Websocket connection not working on mobile browser -


i trying node js application websocket connection.

websocket = new websocket("ws://127.0.0.1:8888"); 

this working fine desktop browsers. not work mobile browsers.

please let me know doing wrong.

solved it.

i needed use public ip of pc instead of 127.0.0.1


Comments

Popular posts from this blog

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -