Skip to content

Commit

Permalink
Fix websocket endpoint class & refactor signaling endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mekya committed Apr 13, 2022
1 parent c9f18ee commit 5d73ea4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private void createHandler(ApplicationContext context, Session session) {

// If user want to RTMP play, should add rtmp query in websocket URL.
if(io.antmedia.rest.RestServiceBase.isEnterprise() && !rtmpForward) {
Class clazz = Class.forName("io.antmedia.enterprise.webrtc.WebSocketSignalingHandler");
Class clazz = Class.forName("io.antmedia.enterprise.webrtc.WebSocketEnterpriseHandler");
handler = (WebSocketCommunityHandler) clazz.getConstructor(ApplicationContext.class, Session.class).newInstance(context, session);
}
else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import io.antmedia.websocket.WebSocketConstants;


@ServerEndpoint(value="/signaling", configurator=AMSEndpointConfigurator.class)
@ServerEndpoint(value="/websocket/signaling", configurator=AMSEndpointConfigurator.class)
public class WebSocketSignalingLocalHandler {

WebSocketCommunityHandler handler;
Expand All @@ -43,6 +43,7 @@ public void onOpen(Session session, EndpointConfig config) {

//increase max text buffer size - Chrome 90 requires
session.setMaxTextMessageBufferSize(8192 * 10);

}


Expand Down

0 comments on commit 5d73ea4

Please sign in to comment.