Dedicated Worker Example

Timestamp values are returned from worker after request.

Shared Worker Example

Create some windows and they will communicate between each other via shared worker.
You can open more 'chat' tabs and they will keep connection.