Commit Graph

1388 Commits

Author SHA1 Message Date
bitfl0wer dd2b29622f Move wasm-pack installation before test execution 2023-11-20 00:07:09 +01:00
bitfl0wer 4023d023ed Add wasm.rs test 2023-11-20 00:06:35 +01:00
bitfl0wer a00ec555d0 Add wasm32 target 2023-11-19 23:18:58 +01:00
bitfl0wer 505abdb82d Add macos safari wasm test 2023-11-19 23:15:12 +01:00
bitfl0wer 5fdac6d48f Build & Test for wasm 2023-11-19 23:04:25 +01:00
bitfl0wer 5826ccd923 add wasm-bindgen-test 2023-11-19 22:49:41 +01:00
bitfl0wer 1203e20358 Implement wasm Backend 2023-11-19 22:23:24 +01:00
bitfl0wer 8f0d8813eb Better feature locking, add wasm.rs 2023-11-19 22:04:18 +01:00
bitfl0wer 73342d5dd7 reorganize files 2023-11-19 21:21:34 +01:00
bitfl0wer 6fd6bdcbbc Give tungstenite types distinct names 2023-11-19 21:15:10 +01:00
Flori 5dbb3b1bf0 Prepare for wasm32-unknown-unknown adoption (#442)
Building for wasm32 requires changes throughout the project (e.g.
conditional compiling). This PR sets up most of the things needed to
build for this target.
2023-11-19 19:27:20 +01:00
bitfl0wer b3e7876ccf feature lock backend_tungstenite 2023-11-19 19:18:25 +01:00
bitfl0wer a4d5ebb689 Resolve merge conflicts 2023-11-19 19:12:29 +01:00
bitfl0wer 79e70c43a2 Merge branch 'websockets-backend' into feature/wasm32-unknown 2023-11-19 18:35:35 +01:00
bitfl0wer 0e16e55d64 Fix references to heartbeat_thread_communicator 2023-11-19 18:27:49 +01:00
Vincent Junge 5bd8f32a6a remove superfluous return 2023-11-19 17:47:48 +01:00
Vincent Junge c0ce540da6 for got unwrap :3 2023-11-19 17:18:08 +01:00
Vincent Junge dd9945068f removed leftover type aliases 2023-11-19 17:15:00 +01:00
Vincent Junge 0f446f43b4 removed outdated comment 2023-11-19 17:13:52 +01:00
Vincent Junge 4f207d55d9 prepare for platform-dependant websockets backend 2023-11-19 17:08:53 +01:00
bitfl0wer 19f8403bcf Make HBHandler<T,S> struct instead of trait
Make HeartbeatHandler a generic struct instead of a struct with a trait.
Reduces redundant code
2023-11-19 17:07:08 +01:00
bitfl0wer 70812c529a Move Heartbeathandler code together 2023-11-19 16:44:38 +01:00
bitfl0wer f4ae80fee9 temp: impl heartbeathandlercapable 2023-11-19 16:43:21 +01:00
bitfl0wer b3ebdd69fc Add TODO comment 2023-11-19 16:42:48 +01:00
bitfl0wer 50cd93aae1 Add kill send to WasmGateway 2023-11-19 16:42:05 +01:00
bitfl0wer 926a9fc90e TEMP: Compile wasm dependencies&code per default
TODO: Check todos before merging into dev
2023-11-19 12:52:11 +01:00
bitfl0wer 9f45094bd9 Add todos 2023-11-19 12:51:13 +01:00
bitfl0wer 565a0cd745 Impl spawn() for wasm gateway 2023-11-19 12:51:07 +01:00
bitfl0wer 9ae07a15d7 start implementing wasm gateway 2023-11-19 01:31:04 +01:00
bitfl0wer 5aeba447af Remove trait bound: From tungstenite::Message 2023-11-18 21:42:48 +01:00
bitfl0wer a0d14ceaf9 Add MessageCapable trait implementation for
WsMessage
2023-11-18 20:02:50 +01:00
bitfl0wer 6ae715988d Refactor WasmGateway struct and import statements 2023-11-18 20:02:45 +01:00
bitfl0wer 39e61a73e9 Remove is_error method from MessageCapable trait 2023-11-18 20:02:39 +01:00
bitfl0wer f1e3058346 Update Gateway types based on target architecture
and feature
2023-11-18 20:02:34 +01:00
bitfl0wer 287b72c99c Implement MessageCapable trait methods in gateway
default module
2023-11-18 20:02:28 +01:00
bitfl0wer 29efae385e Apparently, the conditional dependency now works again. lol 2023-11-18 19:18:55 +01:00
bitfl0wer 81455afb7c Use upstream ws_stream_wasm 2023-11-18 19:13:26 +01:00
bitfl0wer 862a846055 Rename `get_handle` to `spawn` 2023-11-18 19:07:56 +01:00
bitfl0wer 964d879e8f Remove unused code 2023-11-18 18:50:47 +01:00
bitfl0wer 9507d489bf Import trait 2023-11-18 18:41:11 +01:00
bitfl0wer 16bdd68d98 Fixed most errors, simplified new generic traits 2023-11-18 18:39:01 +01:00
bitfl0wer ce7ff49ee4 checkpoint 2023-11-18 18:08:12 +01:00
bitfl0wer 17a58f6f40 Use ws_stream_wasm fork 2023-11-18 15:27:22 +01:00
bitfl0wer 3d3c61240c pub use 2023-11-18 12:27:50 +01:00
bitfl0wer db80abbf43 Make heartbeathandler shared struct 2023-11-16 20:02:01 +01:00
bitfl0wer cefaa6545f Remove duplicate code 2023-11-16 19:25:55 +01:00
bitfl0wer 339a8f5b7c Revert "Add Adapter GatewayMessageData"
This reverts commit f355837125.
2023-11-16 19:07:14 +01:00
bitfl0wer e38445b644 Revert "Make GatewayMessage use new Adapter Type"
This reverts commit b0b90f094e.
2023-11-16 19:05:36 +01:00
bitfl0wer b0b90f094e Make GatewayMessage use new Adapter Type 2023-11-16 18:30:09 +01:00
bitfl0wer f355837125 Add Adapter GatewayMessageData
Fits onto tokio_tungstenite Messages and ws_stream_wasm::WsMessage
2023-11-16 18:20:45 +01:00