Skip to content

zwr-123/-Danmu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

-Danmu

简单的websocket+swing界面

运行程序前,需要把如下代码,添加到网站处理弹幕的js文件中。 !function(){ if(window.flag){ window.ws1.send(JSON.stringify(ot)) if(ws1.readyState === WebSocket.CLOSED){ var ws = new WebSocket("ws://127.0.0.1:8299"); ws1 = ws; flaggg = true; ws.open = function(evt) { ws.send(JSON.stringify(ot)); } } }else{ var ws=new WebSocket("ws://127.0.0.1:8299"); window.ws1=ws; window.flag=true; ws.open=function(evt){ ws.send(JSON.stringify(ot)) } } }();

About

简单的websocket+swing界面

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages