Commit Graph

679 Commits

Author SHA1 Message Date
tt2468
df8ef87dc5 WebSocketServer: Add parts for availableRequests/availableEvents 2021-04-30 10:13:42 -07:00
tt2468
45367a7355 WebSocketProtocol: Session parameter stuff 2021-04-30 10:03:38 -07:00
Github Actions
26bfd3121d docs(ci): Update generated docs - 5afaf3e [skip ci] 2021-04-30 17:03:08 +00:00
tt2468
5afaf3e6e3 Docs: Update event subscriptions model and general improvements 2021-04-30 10:02:05 -07:00
tt2468
ffaac93ba6 WebSocketSession: Add mutex for operations which change session parameters 2021-04-30 08:56:08 -07:00
tt2468
4be9b995fb base: Use shared_ptr instead of explicit ref counts
Took a night of sleep but I realized how I could solve the
concurrency issues in a good way. Uses shared_ptr, where the map
always accounts for one reference to a session.
2021-04-30 08:45:34 -07:00
tt2468
32758198ab WebSocketSession: Add refcount
Working towards fixing concurrency issues. Todo:

- Wait for refcount to be 0 before deleting object
- Use .at() instead of operator[] to prevent recreating deleted
sessions
- There was a third thing. Dont remember what it was
2021-04-29 22:11:24 -07:00
tt2468
e151a9a8db base: Use Unix EOL 2021-04-29 21:13:34 -07:00
tt2468
904e866a07 WebSocketProtocol: Delete left over log message 2021-04-29 21:10:19 -07:00
tt2468
09bfea0628 WebSocketProtocol: Add Identify logic (not tested well) 2021-04-29 20:37:28 -07:00
tt2468
f57d03e4bb WebSocketProtocol: Rename Process to ProcessMessage 2021-04-29 19:14:23 -07:00
tt2468
e0183d2f85 WebSocketServer: This *should* complete the functionality of WebSocketServer. 2021-04-29 19:03:32 -07:00
tt2468
ad8b13606f Base: Add WebSocketProtocol
Will be used to handle incoming websocket messages. Initially I was
going to handle messages within WebSocketServer, but the file is
starting to get very large and so it's only fair to split it up.
2021-04-29 10:52:29 -07:00
tt2468
44c5683ec4 WebSocketServer: Fix some bugs 2021-04-29 10:11:19 -07:00
tt2468
7c80a5d050 WebSocketServer: Add incoming and outgoing message logging and incrementing 2021-04-29 09:56:21 -07:00
tt2468
190d42fdf2 WebSocketServer: Initial onMessage handling 2021-04-29 09:42:22 -07:00
tt2468
724a63f1c8 WebSocketServer: Catch and ignore errors in Hello sending. 2021-04-29 09:14:35 -07:00
tt2468
561ba907d4 WebSocketServer: Ignore send errors 2021-04-29 09:09:20 -07:00
tt2468
ba710efe09 WebSocketServer: Include password in changed GetConnectString()
New format is `obswebsocket|ip:port|password`
2021-04-29 09:06:12 -07:00
tt2468
4028d42931 WebSocketServer: Only encode event once and when it's required 2021-04-29 08:52:40 -07:00
tt2468
d8e84321b1 WebSocketServer: Clarify logging 2021-04-29 08:34:50 -07:00
tt2468
1cee256cb3 WebSocketServer: Store debug setting 2021-04-29 08:24:27 -07:00
tt2468
3ac0f0edee Merge branch 'master' of https://github.com/Palakis/obs-websocket 2021-04-28 22:52:47 -07:00
tt2468
fa259b43a9 WebSocketServer: Finish BroadcastEvent() 2021-04-28 22:52:19 -07:00
tt2468
b43fc4fec6 WebSocketServer: Make QObject again 2021-04-28 22:13:02 -07:00
tt2468
0370b5882d WebSocketServer: Finish GetConnectUrl() 2021-04-28 22:07:52 -07:00
Github Actions
74a82e5cb3 docs(ci): Update generated docs - d1d5dd7 [skip ci] 2021-04-29 05:04:11 +00:00
tt2468
d1d5dd74ea WebSocketServer: Send hello in onOpen 2021-04-28 22:03:23 -07:00
tt2468
b0a594e509 WebSocketCloseCode: Add InvalidContentType 2021-04-28 20:54:31 -07:00
tt2468
ee858448c5 CI: Don't need these anymore 2021-04-28 20:34:46 -07:00
tt2468
fab3bde9e0 CI: Cache Qt archive instead of directory
Helps build times
2021-04-28 20:27:34 -07:00
tt2468
671407efaf CI: Qt private shit 2021-04-28 20:17:26 -07:00
tt2468
35569cd4af CI: Add deps I didnt think were necessary 2021-04-28 20:14:12 -07:00
tt2468
ff1f016964 CI: Damn pipewire shit 2021-04-28 20:10:33 -07:00
tt2468
4e62b40857 CI: Add Ubuntu run 2021-04-28 20:07:57 -07:00
tt2468
ec0deb4f48 CI: More shit + caching 2021-04-28 19:41:39 -07:00
tt2468
c2b04d6951 CI: Fix installer syntax error 2021-04-28 19:17:32 -07:00
tt2468
134a6b7efe CI: Fix installer filename 2021-04-28 19:05:58 -07:00
tt2468
0042d40256 CI: Don't build obs browser 2021-04-28 18:55:41 -07:00
tt2468
ebdc954aa7 CI: Update qt msvc 2021-04-28 18:49:44 -07:00
tt2468
63a3e28c4b CI: Update some stuff 2021-04-28 18:45:56 -07:00
tt2468
3ae8c1a8fb CI: Test the old gh actions script 2021-04-28 18:34:44 -07:00
tt2468
89373827f0 CI: Make qt cache the directory now 2021-04-28 17:43:52 -07:00
tt2468
a42954262c CI: Can we cache the directory? 2021-04-28 17:38:38 -07:00
tt2468
f99ad7f347 CI: It's all dumb 2021-04-28 17:28:37 -07:00
tt2468
94d2fed542 CI: CI is dumb 2021-04-28 17:26:32 -07:00
tt2468
758ce3303b CI: How about now 2021-04-28 17:21:48 -07:00
tt2468
23daa40bdd CI: More stuff 2021-04-28 17:19:01 -07:00
tt2468
90386bb81b CI: Match cache stuff 2021-04-28 17:11:28 -07:00
tt2468
1f07b44bec CI: Maybe fix cache? 2021-04-28 16:53:46 -07:00