Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

ANN: dmc_websockets - WebSocket module for Corona SDK
Started by dmccuskey May 14 2014 01:11 PM

5 replies to this topic
websockets networking
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

dmccuskey

[GLOBAL: userInfoPane.html]
dmccuskey
  • Pro
  • PipPipPipPipPipPip
  • 133 posts
  • Jedi

i just published a WebSocket module to my Corona repo at github. it's one of the tools i needed for a project i'm working on, so decided to share it with the community.
 
i tested the performance a few days ago and was getting ~2-3KB/s throughput – the example i have showed the data updates reflected in a scrollable list (scrolling smoothly). soon i'll post the code for this performance example in the github repo along with the other example currently there.
 
that throughput is fast enough for my project, however i'm sure it could be faster. unfortunately Corona SDK doesn't include any of the binary processing libraries (bit or lpack), so everything is being manipulated in Lua. :(
it would be awesome if CoronaLabs or someone in the community added these two libraries to the Plugins area so that we could supercharge low-level binary protocols ! :)
 
if you're interested to know more:
 
 
happy coding !
 
dmc
 
ps, i actually wrote this to support a library module for WAMP (http://wamp.ws) – a Corona WAMP client is really the Holy Grail for my project. i'm going to start coding soon...
 

 



[TOPIC: post.html]
#2

Gremlin Interactive™

[GLOBAL: userInfoPane.html]
Gremlin Interactive™
  • Enterprise
  • PipPipPipPipPipPip
  • 523 posts
  • Jedi

If i understand you correctly, your looking for a bit library? If so, have you seen this? http://docs.coronalabs.com/daily/plugin/bit/

[TOPIC: post.html]
#3

dmccuskey

[GLOBAL: userInfoPane.html]
dmccuskey
  • Pro
  • PipPipPipPipPipPip
  • 133 posts
  • Jedi

sweet ! i just looked over the plugins last week and must have gone right past it.

 

thank you for letting me know. i'm going to integrate it ASAP !

 

cheers,

dmc



[TOPIC: post.html]
#4

Gremlin Interactive™

[GLOBAL: userInfoPane.html]
Gremlin Interactive™
  • Enterprise
  • PipPipPipPipPipPip
  • 523 posts
  • Jedi

sweet ! i just looked over the plugins last week and must have gone right past it.

thank you for letting me know. i'm going to integrate it ASAP !

cheers,
dmc


Welcome :)

Also, thanks for sharing this library!

[TOPIC: post.html]
#5

dmccuskey

[GLOBAL: userInfoPane.html]
dmccuskey
  • Pro
  • PipPipPipPipPipPip
  • 133 posts
  • Jedi

i integrated the 'bit' plugin into the websocket lib and then ran a simple test to see how much faster it ran. looks like the plugin is around 20% faster. w00t !



[TOPIC: post.html]
#6

Gremlin Interactive™

[GLOBAL: userInfoPane.html]
Gremlin Interactive™
  • Enterprise
  • PipPipPipPipPipPip
  • 523 posts
  • Jedi

i integrated the 'bit' plugin into the websocket lib and then ran a simple test to see how much faster it ran. looks like the plugin is around 20% faster. w00t !


Glad it helped :)


[topic_controls]
[/topic_controls]



Also tagged with one or more of these keywords: websockets, networking