Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

7 Commits

Repository files navigation

poorws.js

This is a very simple WebSocket Client wrapper.

usage

initialization

<scriptsrc="js/poorws.js"></script>
varws=newpoorws("SERVER URL");

handle on connection status changed

ws.onStatusChange=function(status){$("#status").text(status);};

send

$("#sendmes").click(function(){ws.send("testes");});

onMessage

ws.onMessage=function(mes){varstr=JSON.parse(mes.data);console.log(str);};

That's all! Enjoy! :D

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages