Skip to content

Commit

Permalink
Add gsb+flexbuffers to websocket endpoint response
Browse files Browse the repository at this point in the history
  • Loading branch information
nieznanysprawiciel committed Jul 27, 2023
1 parent be9358a commit f58a73b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/gsb-api/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ async fn get_service_messages(
log::debug!("No old WS connection");
}
let handler = WsMessagesHandler { service };
let (_addr, resp) = ws::WsResponseBuilder::new(handler, &req, stream).start_with_addr()?;
let (_addr, resp) = ws::WsResponseBuilder::new(handler, &req, stream)
.protocols(&["gsb+flexbuffers"])
.start_with_addr()?;
Ok(resp)
}

Expand Down

0 comments on commit f58a73b

Please sign in to comment.