{"id":19197823,"url":"https://github.com/red5/red5-websocket-chat","last_synced_at":"2026-03-17T16:08:16.890Z","repository":{"id":17838003,"uuid":"20748303","full_name":"Red5/red5-websocket-chat","owner":"Red5","description":"Red5 WebSocket Chat Demo","archived":false,"fork":false,"pushed_at":"2024-04-29T14:21:06.000Z","size":1179,"stargazers_count":27,"open_issues_count":1,"forks_count":31,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-05-09T00:44:39.716Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Red5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-06-11T23:55:08.000Z","updated_at":"2024-06-19T18:16:00.000Z","dependencies_parsed_at":"2024-05-13T15:00:52.316Z","dependency_job_id":null,"html_url":"https://github.com/Red5/red5-websocket-chat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Red5%2Fred5-websocket-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Red5%2Fred5-websocket-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Red5%2Fred5-websocket-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Red5%2Fred5-websocket-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Red5","download_url":"https://codeload.github.com/Red5/red5-websocket-chat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253171212,"owners_count":21865283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T12:18:46.435Z","updated_at":"2026-03-17T16:08:16.885Z","avatar_url":"https://github.com/Red5.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chat application\n\nRed5 chat application example.\n\nThe example `index.html` defaults to using a WebSocket connection; SSE is also supported. Change the host and port entries to match your server as needed.\n\n## Add the WebSocket filter servlet to webapps that require WebSocket support\n\n```xml\n    \u003cfilter\u003e\n        \u003cfilter-name\u003eWebSocketFilter\u003c/filter-name\u003e\n        \u003cfilter-class\u003eorg.red5.net.websocket.server.WsFilter\u003c/filter-class\u003e\n        \u003casync-supported\u003etrue\u003c/async-supported\u003e\n    \u003c/filter\u003e\n    \u003cfilter-mapping\u003e\n        \u003cfilter-name\u003eWebSocketFilter\u003c/filter-name\u003e\n        \u003curl-pattern\u003e/*\u003c/url-pattern\u003e\n        \u003cdispatcher\u003eREQUEST\u003c/dispatcher\u003e\n        \u003cdispatcher\u003eFORWARD\u003c/dispatcher\u003e\n    \u003c/filter-mapping\u003e\n```\n\n## Add the SSE servlet to webapps that require SSE support\n\n```xml\n    \u003cservlet\u003e\n        \u003cservlet-name\u003esse\u003c/servlet-name\u003e\n        \u003cservlet-class\u003eorg.red5.server.net.sse.SSEServlet\u003c/servlet-class\u003e\n        \u003cload-on-startup\u003e-1\u003c/load-on-startup\u003e\n        \u003casync-supported\u003etrue\u003c/async-supported\u003e\n        \u003c!-- use CORS internally if no other CORS is enabled --\u003e\n        \u003cinit-param\u003e\n            \u003cparam-name\u003ecors.enabled\u003c/param-name\u003e\n            \u003cparam-value\u003efalse\u003c/param-value\u003e\n        \u003c/init-param\u003e\n    \u003c/servlet\u003e   \n    \u003cservlet-mapping\u003e\n        \u003cservlet-name\u003esse\u003c/servlet-name\u003e\n        \u003curl-pattern\u003e/events\u003c/url-pattern\u003e\n        \u003curl-pattern\u003e/events/*\u003c/url-pattern\u003e\n    \u003c/servlet-mapping\u003e\n```\n\n## Build and Deploy\n\nBuild the application from the command line with\n\n```sh\nmvn package\n```\n\nIf you are using Red5 Pro, you will need to modify the WebSocket connection URL to include the appropriate capabilities parameter:\n\n```javascript\n    /*\n        if we're hitting a red5pro server, ensure the port is 5080 and wsonly is true (for websocket only mode)\n        ?capabilities=1  : WebSocket Connection only\n        ?capabilities=3  : RTCConnection\n    */\n    var socket = new WebSocket(protocol + '://' + window.location.hostname + ':' + port + '/chat/?capabilities=1', 'chat');\n    // std red5\n    //var socket = new WebSocket(protocol + '://' + window.location.hostname + ':' + port + '/chat', 'chat');\n```\n\nDeploy your application by copying the war file into your `red5/webapps` directory. If the war file does not deploy withing a few minutes, this may indicate the war deployer bean is not created or running; a work-around is to expand the war contents into the webapps directory manually and restart Red5.\n\nAfter deploy is complete, go to http://localhost:5080/chat/ in your browser (open two tabs if you want to chat back and forth on the same computer).\n\n## Pre-compiled WAR\n\nYou can find [compiled artifacts via Maven](http://mvnrepository.com/artifact/org.red5.demos/chat)\n\n[Direct Download](https://oss.sonatype.org/content/repositories/releases/org/red5/demos/chat/2.0.23/chat-2.0.23.war)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fred5%2Fred5-websocket-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fred5%2Fred5-websocket-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fred5%2Fred5-websocket-chat/lists"}