diff --git a/src/ws/context.rs b/src/ws/context.rs
index 4db83df5c..5e207d43e 100644
--- a/src/ws/context.rs
+++ b/src/ws/context.rs
@@ -231,6 +231,13 @@ where
pub fn handle(&self) -> SpawnHandle {
self.inner.curr_handle()
}
+
+ /// Set mailbox capacity
+ ///
+ /// By default mailbox capacity is 16 messages.
+ pub fn set_mailbox_capacity(&mut self, cap: usize) {
+ self.inner.set_mailbox_capacity(cap)
+ }
}
impl WsWriter for WebsocketContext