sksamuel / gwt-websockets Goto Github PK
View Code? Open in Web Editor NEWWebsocket client library for GWT
License: Apache License 2.0
Websocket client library for GWT
License: Apache License 2.0
I use gwt 2.8.1.
Hot to configure server side websocket in GWT Jetty?
Hi, I would like to see a sample of Binary websockets implementation. Once I receive binary data, how can I convert bytes to String/Int?
I tried your web socket implementation and it worked great! However, there is a bug when trying to open more than 1 web socket at the same time. In order to open more than 1 web socket at the same time, the JavaScript code for all ".s" needs to be changed to "[s]":
Doesn't work:
$wnd.s = new WebSocket(url);
$wnd.s.onopen = ...
Corrected version (works):
$wnd[s] = new WebSocket(url);
$wnd[s].onopen = ...
I hope that helps! By the way, great work on your GWT web socket implementation. Thank you :-D
That means byte[] instead of String in send and receive methods. Thanks.
When compiling my project, it terminates with the following message:
[ERROR] Line 88: No source code is available for type com.google.gwt.user.server.Base64Utils; did you forget to inherit a required module?
The reason is clear: Base64Utils is used in a client-side class but resides in the .server package.
This can't possibly work for anyone. Or did I make a mistake?
It seems that binary data is now supported across the newer browsers: http://autobahn.ws/testsuite/reports/clients/index.html
Do we still need the base64 encoding?
Hi,
do you have any plans to support secure websockets?
Or maybe you can point me into the right direction on how to implement it ;)
regards
This looks like a very clean wrapper around websockets. Nice work. Unfortunately, the lack of a software licence declaration implies all-rights-reserved.
Would you be willing to license this GWT module under a permissive licence? LGPL, BSD, MIT or even public domain seem like good choices depending on your views.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.