src/server/server.py
def emit_node_crossing_change(node, **params):
    '''Emits crossing-flag change for given node.'''
    emit_payload = {
        'node_index': node.index,
        'crossing_flag': node.crossing_flag
    }
    if ('nobroadcast' in params):
        emit('node_crossing_change', emit_payload)
    else:
        SOCKET_IO.emit('node_crossing_change', emit_payload)
Emits crossing-flag change for given node.
Emits crossing-flag change for given node.
Emits crossing - flag change for given node .
def emit_node_crossing_change(node, **params):
    emit_payload = {
        'node_index': node.index,
        'crossing_flag': node.crossing_flag
    }
    if ('nobroadcast' in params):
        emit('node_crossing_change', emit_payload)
    else:
        SOCKET_IO.emit('node_crossing_change', emit_payload)
def emit_node_crossing_change ( node , ** params ) : emit_payload = { 'node_index' : node . index , 'crossing_flag' : node . crossing_flag } if ( 'nobroadcast' in params ) : emit ( 'node_crossing_change' , emit_payload ) else : SOCKET_IO . emit ( 'node_crossing_change' , emit_payload )
Emits crossing-flag change for given node.
Emits crossing - flag change for given node .
'''Emits crossing-flag change for given node.'''
node