     }
 
     // swiftlint:disable function_parameter_count
-    func handleMessageSocketEvent(socket: WebSocket, event: WebSocketEvent, userId: String, threadId: String, resFrom: Int, completion: (Result<Void, NicoError>) -> Void) {
+    func handleMessageSocketEvent(socket: WebSocket, event: WebSocketEvent, userId: String, threadId: String, resFrom: Int, threadKey: String, completion: (Result<Void, NicoError>) -> Void) {
         switch event {
         case .connected(_):
             log.debug("connected")

                    case .reconnect:    return -100
                    }
                }(),
                completion: completion)
        }
        socket.connect()

                socket: socket,
                userId: userId,
                threadId: threadId,
                resFrom: resFrom,
                threadKey: threadKey)
        case .disconnected(_, _):
            log.debug("disconnected")
        case .text(let text):
