- Timestamp:
- 01/28/20 10:20:01 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/geniusweb/runserver/WebSocketProtToPartyConn.java
r7 r8 46 46 implements ProtocolToPartyConn { 47 47 private final static ObjectMapper jackson = new ObjectMapper(); 48 // 20MB seems reasonable limit? 49 private static final int MAX_MESSAGE_SIZE = 20 * 1024 * 1024; 48 50 private final Reporter log; 49 51 … … 178 180 public void onOpen(Session session) { 179 181 log.log(Level.INFO, "Party is being connected: " + session); 182 session.setMaxTextMessageBufferSize(MAX_MESSAGE_SIZE); 183 session.setMaxBinaryMessageBufferSize(MAX_MESSAGE_SIZE); 180 184 this.session = session; 181 185 }
Note:
See TracChangeset
for help on using the changeset viewer.