I plan to use HTML5, php, websockets, jQuery & MySql as backend (if saving, etc is required). However, I have no prior experience in websockets. This is an example I found: http://www.codeproject.com/KB/aspnet/WebSocketWhiteBoard.aspx However they are taking websockets from localserver. I wish to use the websocket API provided. http://dev.w3.org/html5/websockets/ We need to begin with a handshake between the client & server. Can you help me as to how I can do so? Thanks!
Creating an online whiteboard app using websockets & HTML5?
4.2k Views Asked by P.C. At
2
There are 2 best solutions below
2
leggetter
On
You could look at PHP WebSocket, apache-websocket/mod_websocket, you could use a separate self hosted realtime web solution or look at a hosted realtime service such as Pusher (who I work for).
There are a number of similar questions about using WebSockets, PHP and related technologies which I recommend you take a look at:
Related Questions in JQUERY
- How to sort these using Javascript or Jquery Most effectively
- Ajax jQuery firing multiple time display event for the same result
- .hover() seems to overwrite .click()
- Check for numeric value with optional commas javascript
- Extending Highmaps Side Effect
- Array appending after each onclick and loop in javascript
- how can i append part of a table based on how many tr it has?
- Play multiple audio files in a slider
- Remove added set of rows
- Access property of an object of type [Model] in JQuery
- AJAX PHP - Reload div after submit
- proengsoft/laravel-jsvalidation ReferenceError: jQuery is not defined
- when a checkbox is checked how to display a different hidden element using javascript
- Get jquery error Uncaught RangeError: Maximum call stack size exceeded
- Removing only the closest thead on table filtering
Related Questions in HTML
- Delay in loading Html Page(WebView) from assets folder in real android device
- Why does a function show up as not defined
- CSS Class is not applying to element (border width,color,and style attributes)
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- Automatically closing tags in form input?
- Positioning child at bottom of parent with scroll
- Remove added set of rows
- Website zoomed out on Android default browser
- Twitter Bootstrap horizontal form elements on a line
- http://sigmajs.org/ les mis tutorial - why are my canvases 0 height?
- My navbar is not expanding after collapse
- when a checkbox is checked how to display a different hidden element using javascript
- Gaps Vertically Using Dividers
- Svg containers not positioning properly
Related Questions in WEBSOCKET
- How to send raw data using socket.io
- HttpRequestContext vs HttpContext
- Websocket support on JBoss 6
- How to send/receive messages through a web socket on windows phone 8.1
- Stop receiving an event for some time in socket io
- Nginx not passing websocket upgrade response back to client?
- Jboss showing this error in eclipse
- Oauth in Tyrus WebSocket
- Meteor: Workaround for having websockets blocked in port 80?
- Python Server - Processing WebSocket.close()
- Multithread using Executor and WebSocket
- Start Rumpetroll on Debian
- What are the possible bugs that cause slow response (sometimes but not all the time) for a websocket connection?
- Ratchet websocket server not responding after some hour
- Angularjs data is not updated on call of $apply
Related Questions in WHITEBOARD
- Problems with buidling a servlet using apache felix whiteboard (OSGi)
- Applet not getting initialized on the browser while using jms to connect to activemq
- Creating an online whiteboard app using websockets & HTML5?
- IllegalStateException: STREAMED when I try to read the POST request body using OSGI's JAX-RS Whiteboard Resource
- Document sharing on whiteboard application using flex
- OSGi services - best practice
- SmartBoard interactive whiteboard drag-and-drop
- <__main__.myClass object at 0x000001CCDC46BD90> instead of expected string output
- How to use movesense simulator?
- Concurrent XML editing by AJAX
- In the reference implementation of the JAX-RS Whiteboard for OSGi, what calls createWhiteboard(..)?
- Whiteboard with Raspberry
- How to draw lines on canvas with pixels in real time
- Is MaterialApp/Scaffold absorb my Listener?
- How can I configure an osgi http whiteboard servlet for HTTPS?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Unless you're using something like
node.jsas your web server (and as you're planning to use PHP I presume that's not the case) you actually need a separate WebSocket server too.If you're running on your own hardware that should be fine, but you're unlikely to find a standard ISP web-host offering you the ability to run your own servers daemons.
There are a number of WebSocket servers and/or libraries available that perform the WebSocket protocol handshake. I've used one that was written for
node.jsbut unfortunately the WS specification was still going through some changes and it's no longer compatible with Chrome.Also, don't get confused by
Socket.IOwhich many people refer to as "WebSockets" - it's not - it's a more general communications method that looks a bit like WebSockets, and may use real WebSockets as its transport layer, but is actually a different protocol altogether.