Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
public class MarketSummaryWebSocket {

private static final Set<Session> sessions = Collections.synchronizedSet(new HashSet<Session>());
private Session currentSession = null;
private final CountDownLatch latch = new CountDownLatch(1);

@OnOpen
Expand All @@ -59,12 +58,11 @@ public void onOpen(final Session session, EndpointConfig ec) {
}

sessions.add(session);
currentSession = session;
latch.countDown();
}

@OnMessage
public void sendMarketSummary(ActionMessage message) {
public void sendMarketSummary(ActionMessage message, Session currentSession) {

String action = message.getDecodedAction();

Expand Down Expand Up @@ -106,7 +104,7 @@ public void sendMarketSummary(ActionMessage message) {
}

@OnError
public void onError(Throwable t) {
public void onError(Throwable t, Session currentSession) {
if (Log.doTrace()) {
Log.trace("MarketSummaryWebSocket:onError -- session -->" + currentSession + "<--");
}
Expand Down