Skip to content

Commit 3e940c9

Browse files
fix: support binary opcode (#604)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Improvements** * WebSocket communication now processes binary payloads in addition to text payloads, expanding the range of supported data types for transmission. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 168fc3f commit 3e940c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

magicblock-aperture/src/server/websocket/connection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl ConnectionHandler {
112112
// Reschedule the next ping
113113
next_ping.as_mut().reset(Instant::now() + PING_PERIOD);
114114

115-
if frame.opcode != OpCode::Text {
115+
if frame.opcode != OpCode::Text && frame.opcode != OpCode::Binary {
116116
continue;
117117
}
118118

0 commit comments

Comments
 (0)