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
- In Datatables, start value resets to 0, when column sorting
- Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
- window.location.href redirects but is causing problems on the webpage
- Using JQuery Date Slider
- Storing selected language in localStorage
- How to stop other divs from still showing when i click a different button?
- Check multiple values with jQuery
- Bootstrap component does not want to render in Datatables function
- put white spaces when entering an amount moneytype symfony
- Trouble accessing custom header in AJAX response using jQuery in Fiware Keyrock
- I just cant make it work, HTML, JS and Firebase error
- Didn't declared variable still not getting any error in JavaScript
- Move element horizontally while scrolling vertically in pure JavaScript
- allow multi carousel in same page
- Embedded TikTok posts / thumbnail styling issue
Related Questions in HTML
- How to store a date/time in sqlite (or something similar to a date)
- How to use custom font during html to pdf conversion?
- Storing the preferred font-size in localStorage
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- Is there any way to glow this bulb image like a real light bulb
- With non-graphical maps in Leaflet, zoomDelta doesn't work
- What can I do to improve my coding on both html and css
- Uncaught TypeError: google.maps.LatLng is not a constructor at init (script.js:7:13)
- Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
- Displaying a Movie List on a Website Using Jinja2 and Bootstrap
- How to redirect to thank you page after submitting a Google form embedded into a Google Site?
- Storing selected language in localStorage
- Fences (parenthesis, braces) in HTML and MathML
- Understanding Scroll Anchoring Behavoir
Related Questions in WEBSOCKET
- Resolving ElephantIO ServerConnectionFailureException: Error establishing connection to server
- Django socketio process
- How to decode audio stream using tornado websocket?
- Java and React WebSocket - Error Connection
- Socket.io nodejs server .NET connection
- Troubleshooting WebSocket 502 Error in Python Code
- Getting an error in Socket.io wordle project
- Best practices with realtime data / websockets. Send vs. revalidate data
- My socket.io web socket application is not sending data to some users
- Android 13 & 14 seem to close WebSocket connection, if i put app in background, after ~20s
- Audio bytes chunks getting corrupted during streaming using Django and Websockets
- Odoo live chat not working when using apache reverse proxy
- websocket Fatal error message stating "Failed to listen on tcp://0.0.0.0:8080: Address already in use
- Stomp connection using JWT token in Python
- Symphony Fintech (XTS) market-data socket data integration in PyQt6 using python3
Related Questions in WHITEBOARD
- how to give transparent canva background to excalidraw
- IllegalStateException: STREAMED when I try to read the POST request body using OSGI's JAX-RS Whiteboard Resource
- Drawing with Cytoscape as a general-purpose whiteboard
- Issue in restricting panning inside a whiteboard app on react native
- How to use the EraserBrush from Fabric.js in React and fix 'fabric.EraserBrush is not a constructor' error?
- Is MaterialApp/Scaffold absorb my Listener?
- Getting token access room forbidden Agora Whiteboard
- <__main__.myClass object at 0x000001CCDC46BD90> instead of expected string output
- using tablet pen on the whiteboard
- Add erase ink functionality in HTML5 canvas whiteboard
- Is it possible to integrate Microsoft whiteboard in Angular web Application?
- Unable to get the otWhiteboard_update Signal from Host to other participant
- How to use movesense simulator?
- Unable to play canvas streaming in Enablex. What will be canvas Selector here?
- Can we add shape in turtle.shape()?
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 # Hahtags
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.